package com.lizonghui.googleplay.control;

import android.graphics.Color;
import android.view.View;
import android.widget.TextView;

import com.lizonghui.googleplay.base.BaseHolder;
import com.lizonghui.googleplay.bean.CategoryInfoBean;
import com.lizonghui.googleplay.utils.UIUtils;

/**
 * Created by Administrator on 2016/6/23.
 */
public class CategoryTitleHolder extends BaseHolder<CategoryInfoBean> {


    private TextView mTextView;

    @Override
    public void refreshHolderView(CategoryInfoBean data) {
        mTextView.setText(data.title);
        mTextView.setTextColor(Color.BLACK);
        int padding = UIUtils.dip2px(5);
        mTextView.setPadding(padding,padding,padding,padding);
    }

    @Override
    public View initHolderView() {
        mTextView = new TextView(UIUtils.getContext());
        return mTextView;

    }
}
